package routes

import (
	"github.com/gin-gonic/gin"
	"github.com/go-redis/redis/v8"
)

func InitRouter(redisClient *redis.Client) *gin.Engine {
	// 创建Gin应用
	router := gin.Default()

	// 注册中间件
	router.Use()

	// 注册API路由
	RegisterAPIRoutes(router, redisClient)

	return router
}
